package cn.app.dao.app_info;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import cn.app.entity.AppInfo;

public interface AppInfoDao {

	Integer findAppInfoCount(Map<String, Object> appInfoCondition);

	List<AppInfo> findAllByCondition(Map<String, Object> appInfoCondition);

	Integer findAppInfoByAPKName(@Param("apkName")String apkName);

	Integer saveAppInfo(AppInfo appInfo);

	AppInfo findAppInfoById(@Param("id")String id);

	Integer updateAppInfo(AppInfo appInfo);

	/**
	 * 根据app的id查询APKName字段
	 * @param appid
	 * @return
	 */
	String findAPKNameById(@Param("id")Long appid);
	/**
	 * 修改指定app的versionid字段.
	 * @param appid
	 * @param id
	 */
	void updateVersionId(@Param("id")Long appid, @Param("versionid")Long id);

}
